package com.ani.mydragon.dto.template;

import java.util.*;

public class PageTemplate {

	public enum PageType{
		article,
		dashboard,
        detail,
		form,
		list
	}
	
	public String title;
	
	public String description;
	
	public String containerId;
	
	public String pageType;
	
	public String targetUrl; //form target url OR list info url OR content info url

	public String targetButtonValue;
	
	public String redirectUrl;

	public List objects;

	public PageTemplate(){}

    //for list page
    public PageTemplate(String title, String description, String containerId, String pageType, String targetUrl, List objects) {
        this.title = title;
        this.description = description;
        this.containerId = containerId;
        this.pageType = pageType;
        this.targetUrl = targetUrl;
        this.objects = objects;
    }

    public PageTemplate(String title, String description, String containerId,
			String pageType, String targetUrl, String targetButtonValue,
			String redirectUrl, List objects) {
		this.title = title;
		this.description = description;
		this.containerId = containerId;
		this.pageType = pageType;
		this.targetUrl = targetUrl;
		this.targetButtonValue = targetButtonValue;
		this.redirectUrl = redirectUrl;
		this.objects = objects;
	}
	
}
